package com.mayfool.task.vo.repository;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhou.xu 2024/8/27 18:18
 */
@Data
@Validated
public class ScanRepositoryReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -239648262946485244L;

    /**
     * cvs类型: git/svn
     */
    private String cvsType;

    /**
     * 本地路径
     */
    @NotBlank(message = "本地路径不能为空")
    private String location;

    /**
     * 最大搜索深度
     */
    private Integer maxDepth = 3;
}
